//Job page specific javascript

$(document).ready(function () {
	
	$('.job_colorbox_wrapper').hide();
	
	var colorboxOptions =  

	//Job application lightbox
	$('.job_apply, .send_to_friend, .refer_a_friend').colorbox({
		transition:'fade', 
		speed:200, 
		inline:true, 
		title:"",
		opacity:0.8,
		initialWidth:"0px",
		initialHeight:"0px",
		onLoad: function() {
			$('#cboxClose').hide();
		},
		onComplete: function() {
			$('#cboxClose').show();
		}
	});
	
	//Job application colorbox
	$('.job_apply').colorbox({
		href:"#job_application",
		width:"870px"
	});
	
	$('.send_to_friend').colorbox({
		href:"#send_friend",
		width:"450px"
	});
	
	$('.refer_a_friend').colorbox({
		href:"#refer_friend",
		width:"870px"
	});

});